﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SurveyDisplay.ascx.cs" company="hoandd">
//   Do Duc Hoan
// </copyright>
// <summary>
//   DesktopModules hoandd testscx
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DesktopModules.Surveys
{
    using System;

    using DotNetNuke.Entities.Modules;
    using DotNetNuke.Entities.Modules.Actions;
    using DotNetNuke.Security;
    using DotNetNuke.Services.Localization;

    /// <summary>
    /// DesktopModules Surveys SurveyDisplay
    /// </summary>
    public partial class SurveyDisplay : PortalModuleBase, IActionable
    {
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        /// <summary>
        /// Gets the module actions.
        /// </summary>
        public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
        {
            get
            {
                ModuleActionCollection actions = new ModuleActionCollection();
                actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.AddContent, this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl("ADD_QUESTION"), false, SecurityAccessLevel.Edit, true, false);
                actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.EditContent, this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl("LIST_SURVEY"), false, SecurityAccessLevel.Edit, true, false);
                return actions;
            }
        }
    }
}